package me.zhengjie.minbearwcs.dao.outbound.impl;

import lombok.RequiredArgsConstructor;
import me.zhengjie.minbearwcs.dao.outbound.inf.OutboundOrderHistoryDao;
import me.zhengjie.minbearwcs.entity.Mapper.outbound.OutboundOrderHistoryMapper;
import me.zhengjie.minbearwcs.entity.PO.wcs.outbound.history.OutboundOrderHistory;
import org.springframework.stereotype.Repository;

@Repository
@RequiredArgsConstructor
public class OutboundOrderHistoryDaoImpl implements OutboundOrderHistoryDao {

    private final OutboundOrderHistoryMapper mapper;

    @Override
    public boolean insert(OutboundOrderHistory outboundOrderHistory) {
        return mapper.insert(outboundOrderHistory) == 1;
    }
}
